package com.aia.prm.web.ria.app.ui.qne;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.aia.prm.domain.Qne;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class QneContainer extends BeanItemContainer<Qne> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "QNE_GUID", "QNE_ADRESS", "QNE_BASE", "QNE_BIRTH", "QNE_NAME",
			"QNE_PHO", "QNE_SEX", "QNE_DATE", "QNE_TIME" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "记录ID", "地址", "保障需求", "生日", "名字", "手机号", "性别", "日期", "时间" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "QNE_GUID", "QNE_ADRESS", "QNE_BASE", "QNE_NAME", "QNE_PHO",
			"QNE_SEX", "QNE_DATE", "QNE_TIME" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {

		FIELD_NAME_MAP.put("QNE_GUID", "记录ID");
		FIELD_NAME_MAP.put("QNE_ADRESS", "地址");
		FIELD_NAME_MAP.put("QNE_BASE", "保障需求");
		FIELD_NAME_MAP.put("QNE_BIRTH", "生日");
		FIELD_NAME_MAP.put("QNE_NAME", "被保人省");
		FIELD_NAME_MAP.put("QNE_PHO", "手机号");
		FIELD_NAME_MAP.put("QNE_SEX", "性别");
		FIELD_NAME_MAP.put("QNE_DATE", "日期");
		FIELD_NAME_MAP.put("QNE_TIME", "时间");

	}

	public static final List<String> PLAN_TYPE_LIST = new ArrayList<String>();
	static {
		PLAN_TYPE_LIST.add("合同");
		PLAN_TYPE_LIST.add("保险金");
	}

	public QneContainer() throws InstantiationException, IllegalAccessException {
		super(Qne.class);
	}
}